package com.xiaochen.manager.test;

public class test5 {
    public static void main(String[] args) {
//        generate();
        generate1();
        add();
        add(99);
    }

    public static void generate(){
        String s = "周瑜";
        System.out.println(s);
        System.out.println(s.hashCode());
        s = "ab";
        System.out.println(s.hashCode());
        System.out.println(s);
    }

    public static void generate1(){
        StringBuffer s1 = new StringBuffer();
        s1.append("周瑜");
        System.out.println(s1);
        System.out.println(s1.hashCode());
        s1.append("张三");
        System.out.println(s1);
        System.out.println(s1.hashCode());
    }


    public static void add(){
        int a = 1;
        System.out.println(a);
    }
    public static int add(Integer a){
        int b = a;
        System.out.println("b="+b);
        return b;
    }
}
